package com.itcast.domain;

public class Son extends Father {
    private String sname;

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public String toString() {
        return "Son{" +
                "sname='" + sname + '\'' +
                '}';
    }

    public Son(String name) {
        super(name);
    }
    public Son() {
    }
}
